import java.util.Arrays;

public class TestcopyOf {
    public static void main(String[] args) {
        int[][] array1 = {{1,2,3},{1,2}};
        System.out.println(Arrays.toString(array1[0]));
    }
    public static void main1(String[] args) {
        int[] a = new int[]{1, 2, 3};
        int[] b = Arrays.copyOf(a, 4);
        System.out.println(Arrays.toString(b));
        int[] c = a.clone();
        System.out.println(Arrays.toString(c));
    }
}
